#pragma once
#include <SFML/Graphics.hpp>
#include <Box2D/Box2D.h>
#include "WindowManager.h"
#include "MapBox.h"
#include <stdio.h>
#include <windows.h>
class Ground
{

private:
	b2World* world;
	WindowManager* window;
	b2Body* body;
	MapBox* boxes;
	b2Vec2 getB2(float, float);
	void generateGround(void);
	std::vector<int> groundLayout;
	void generateGroundBoxes(void);
	std::vector<MapBox> groundBoxes;
	int mapBoxCount;



public:
	Ground(b2World*, WindowManager*);
	~Ground(void);
	void drawGround();
	float getTop(void);
	float getHeight(void);
	float getWidth(void);



};

